﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jim.K3Cloud;

[Sdk("Kingdee.BOS.ServiceFacade.ServicesStub.Metadata.MetadataService.GetConvertBills", "根据一个单据ID获取单据转换流程中的源单或目标单")]
public class K3CloudMetadataGetConvertBillsRequest : ISdkRequest<K3CloudMetadataGetConvertBillsResponse>
{
    /// <summary>
    /// 操作类型，ConvertPush:下推/ ConvertPush:上拉
    /// </summary>
    public K3CloudFormOperationEnum Op { get; set; }
    /// <summary>
    /// 源/目标单据ID，如果类型为下推，则formID为源单据，否则为目标单据
    /// </summary>
    public string FormID { get; set; }

    public void Validate()
    {
    }
}



public class K3CloudMetadataGetConvertBillsResponse : SdkResponse<List<K3CloudConvertBillElement>>
{
}

/// <summary>单据节点元素</summary>
public class K3CloudConvertBillElement
{
    /// <summary>单据ID</summary>
    public string FormID { get; set; }

    /// <summary>节点X坐标值</summary>
    public float X { get; set; }

    /// <summary>节点Y坐标值</summary>
    public float Y { get; set; }

    /// <summary>转换节点类型，单据或基础资料</summary>
    public K3CloudConvertBillType ConvertBillType { get; set; }
}